package com.xujie.sportsmeeting.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 项目裁判员关联实体
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("event_judge")
public class EventJudge implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关联ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 比赛项目ID
     */
    @TableField("event_id")
    private Long eventId;

    /**
     * 裁判员ID
     */
    @TableField("judge_id")
    private Long judgeId;

    /**
     * 裁判角色 1-主裁判 2-副裁判 3-记录员
     */
    @TableField("judge_role")
    private Integer judgeRole;

    /**
     * 分配时间
     */
    @TableField(value = "assign_time", fill = FieldFill.INSERT)
    private LocalDateTime assignTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
